using UnityEngine;
using System.Collections;

public class telaDerrota : MonoBehaviour {
	
	
	public lifePlayer lp = new lifePlayer();
	public Transform inimigo;
	public Transform spawn;
	public killEnemy ke = new killEnemy();
	
	public int InimigosMortos = 0;
	
	
	// Use this for initialization
	void Start () {
	
		 
		
	}
	
	// Update is called once per frame
	void Update ()
	{
		Debug.Log("life Enemy: "+ ke.lifeEnemy);
		
		
		
		
		
		if(lp.life == 0){
				Destroy(spawn.gameObject);
				Destroy(inimigo.gameObject);		
		}	
			
		/*if(ke.lifeEnemy <= 0){
			InimigosMortos++;
			
			 
		}*/
	
	}
}
